/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: StockController
 * @Package com.rx.stock.controller
 * @Description: 界面
 * @author: 陈锦韬
 * @date: 2021\9\9 0009
 * @version V1.0
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
package com.rx.stock.controller;

import com.rx.core.base.RxBaseController;
import com.rx.stock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Administrator
 * @Description: 界面
 * @date: 2021\9\9 0009
 */
@RestController
@RequestMapping("stock")
public class StockController extends RxBaseController {

    @Autowired
    StockService stockService;
    @PostMapping("/run-data")
    public Object runData(){
        return  stockService.runData();
    }

    /**
     * 计算均量
     * @return
     */
    @PostMapping("/run-for-avg")
    public Object runForAvg(){
        return  stockService.runForAvg();
    }

    /**
     * 标记买卖点
     * @return
     */
    @PostMapping("/run-for-flg")
    public Object runForFlg(){
        return  stockService.runForFlg();
    }

    @PostMapping("/run-flg-no-save")
    public Object runFlgNoSave(){
        return  stockService.runFlgNoSave();
    }

    @PostMapping("/get-all-share")
    public Object getAllShare(){
        return  stockService.getAllShare();
    }

    @PostMapping("/get-all-history")
    public Object getAllHistory(){
        return  stockService.getAllHistory();
    }

    @PostMapping("/get-latest")
    public Object getAllLatest(){
        return  stockService.getAllLatest();
    }

    @PostMapping("/run-max")
    public Object runMax(){
        return  stockService.runMax();
    }


    @PostMapping("/get-szs-something")
    public Object getSzsSomething(){
        return  stockService.getSzsSomething();
    }

    @PostMapping("/get-sz-history")
    public Object getSzHistory(){
        return  stockService.getSzHistory();
    }

    @PostMapping("/get-sh-history")
    public Object getShHistory(){
        return  stockService.getShHistory();
    }
}
